#pragma once
#include <cocos2d.h>
#include <iostream>
#include "Effect.h"

class MainLayer;

using namespace std;
USING_NS_CC;

class EffectManager : public CCNode
{
public:
	EffectManager(void);
	~EffectManager(void);

	virtual bool init();
	virtual void onEnter();
	virtual void onExit();

	void addEffect(Effect* effect);
	void removeEffect(Effect* effect);
	void effectProcessing(float dt);

	CREATE_FUNC(EffectManager);
	MainLayer* getMainLayer();
	CC_SYNTHESIZE_RETAIN(CCArray*, _listEffect, Effects);
};

